package com.ruoyi.sysCityData.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.List;

public  class SysCityData extends BaseEntity
{
    private static final long serialVersionUID = 1L;
    /** id */
    @Excel(name = "id")
    private Long id;

    /** pid */
    @Excel(name = "pid")
    private Long pid;

    /** 行政编码 */
    @Excel(name = "行政编码")
    private String code;

    /** 省市区 */
    @Excel(name = "省市区")
    private String name;

    /** 子集市 */
    @Excel(name = "子集市")
    private List<SysCityData> children;
    public void setId(Long id)
    {
        this.id = id;
    }
    public Long getId()
    {
        return id;
    }
    public void setPid(Long pid)
    {
        this.pid = pid;
    }
    public Long getPid()
    {
        return pid;
    }
    public void setCode(String code)
    {
        this.code = code;
    }
    public String getCode()
    {
        return code;
    }
    public void setName(String name)
    {
        this.name = name;
    }
    public String getName()
    {
        return name;
    }
    public List<SysCityData>  getChildren()
    {
        return children;
    }
    public void setChildren(List<SysCityData> children)
    {
        this.children = children;
    }
    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("pid", getPid())
                .append("code", getCode())
                .append("name", getName())
                .toString();
    }
}

